@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: 'Inter', sans-serif;
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    background-image: linear-gradient(
        -45deg,
        rgb(88, 28, 135),
        rgb(49, 46, 129),
        rgb(30, 58, 138),
        rgb(49, 46, 129)
    );
    cursor: none;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* 添加一些炫酷的光效 */
.hero h1 {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* 为卡片添加边框光效 */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* 自定义鼠标指针 */
.cursor {
    width: 20px;
    height: 20px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(139, 92, 246, 0.5);
}

/* 鼠标轨迹效果 */
.trails-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: trail-fade 1s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }
}

/* 链接悬停效果增强 */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
} 